MyExceptionOccurred
Indicates that an exception occurred. This is how you would define your exception notification function if you were to name itMyExceptionOccurred
:
void MyExceptionOccurred ( JMAWTContextRef context, const JMTextRef exceptionName, const JMTextRef exceptionMsg, const JMTextRef stackTrace);
context
- The AWT context in which the exception occurred.
exceptionName
- A text object containing the name of the exception.
exceptionMsg
- A text object containing the exception message to display. This value is not guaranteed to be present and may be
null
.stackTrace
- A text object containing information about the call chain where the exception occurred. This value is not guaranteed to be present and may be
null
.DISCUSSION
When instantiating an AWT context, you must designate a callback function to notify that an exception has occurred. You cannot use this function to recover from the exception; this function indicates only that an exception has occurred.